import java.util.Arrays;

public class Solution1769 {
    public int[] minOperations(String boxes) {
        int[] f=new int[boxes.length()];
        for (int i=0;i<boxes.length();i++){
            for (int j=0;j<boxes.length();j++){
                f[i]+=(boxes.charAt(j)-'0')*Math.abs(i-j);
            }
        }
        return f;
    }

    public static void main(String[] args) {
        System.out.println(Arrays.toString(new Solution1769().minOperations("110")));
    }
}
